package com.elmcode.study.design.pro03_singleton;

import io.swagger.models.auth.In;

public class InnerClassStyle {


    private InnerClassStyle(){

    }

    private static class SingletonHolder{
        //静态初始化器，由JVM来保证线程安全
        private static InnerClassStyle instance = new InnerClassStyle();
    }

    public static InnerClassStyle getInstance(){
        return SingletonHolder.instance;
    }


}
